#三元表达式
#a = 1
#b = 2
#print(a if a>b else b)
#print("a最大") if a>b else print("b最大")

# 猜拳游戏
import random
ni = int(input("请出拳：剪刀（0），石头（1），布（2）:\n"))
com = random.randint(0,2)
print(f"电脑出拳是{com}")
#你胜利的情况如下：
if ((ni == 0) and (com == 2)) or ((ni == 1) and (com == 0)) or ((ni == 2) and (com == 1)):
    print(" You win!")
elif ni == com:
    print("Draw game!")
else:
    print("You lose!")
